<%@page import="db.dbo.DictionariesDBO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="javax.servlet.*" %>


<%
  String word = request.getParameter("word");
  if(word == null || word == ""){//If User click the button without an input :
    out.print("<font size='2' color='blue'>PLEASE ENTER A WORD TO USE LOOKING UP FUNCTION <//font>");
  }else{
    int dictID= Integer.valueOf(request.getParameter("dictID"));
    
    DictionariesDBO dictDBO = new DictionariesDBO();
    
    out.println(dictDBO.lookupWord(dictID, word));
  }
%>